package com.sgcc.nfc.lock.domain.model

data class DashboardStats(
    val totalLocks: StatItem,
    val openLocks: StatItem,
    val closedLocks: StatItem,
    val pendingWarnings: StatItem,
    val totalRooms: StatItem,
    val todayOperations: StatItem
) {
    // 为了兼容现有代码，提供简单的数值访问方法
    val totalLocksValue: Int get() = totalLocks.value
    val openLocksValue: Int get() = openLocks.value
    val closedLocksValue: Int get() = closedLocks.value
    val pendingWarningsValue: Int get() = pendingWarnings.value
    val totalRoomsValue: Int get() = totalRooms.value
    val todayOperationsValue: Int get() = todayOperations.value
}
